#include "../common/common.h"
#include "cl_console.h"

#include <stdio.h>

static FILE * log_file;

void init_console(void)
{
	log_file = fopen("Fire.log", "w");
	if (log_file == NULL)
		com_fatal("fail to open log file");
}

void release_console(void)
{
	fclose(log_file);
}

void con_log(const char * msg)
{
	fprintf(stdout, msg);
	fprintf(log_file, msg);
}


